package services

import (
	"context"
	"github.com/golang/protobuf/ptypes/empty"
	"github.com/golang/protobuf/ptypes/wrappers"
	context2 "kop/framework/context"
	"kop/modules/chat/client"
	"kop/pb"
)

type ChatService struct {
	context2.Context
}

func (s *ChatService) ServerChats(ctx context.Context, req *wrappers.Int32Value) (*pb.Chats, error) {

	return client.ChatService.ServerChats(ctx, req)
}

func (s *ChatService) SendServerChat(ctx context.Context, req *wrappers.StringValue) (*empty.Empty, error) {

	return client.ChatService.SendServerChat(ctx, req)
}

func (s *ChatService) GuildChats(ctx context.Context, req *wrappers.Int32Value) (*pb.Chats, error) {

	return client.ChatService.GuildChats(ctx, req)
}

func (s *ChatService) SendGuildChat(ctx context.Context, req *wrappers.StringValue) (*empty.Empty, error) {

	return client.ChatService.SendGuildChat(ctx, req)
}
